import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {path: '/', redirect:'/home'},
    {path: '/home', component: () => import('@/components/Home.vue')},
    {path: '/about',
     component: () => import('@/components/About.vue'),
     children: [
      {path: 'tab1', component: () => import('@/components/tabs/Tab1.vue')},
      {path: 'tab2', component: () => import('@/components/tabs/Tab2.vue')}
     ]
    },
    {path: '/movie', component: () => import('@/components/Movie.vue')}
  ]
})

export default router